home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / libhtml_.tar / object.h < prev    next >
C/C++ Source or Header  |  1993-01-20  |  377b  |  18 lines

  1. /* object.h -- C++ isms for C
  2.  * $Id$
  3.  */
  4.  
  5. #include <stdlib.h>
  6.  
  7. #define NEW(type, qty) ((type*)malloc(qty * sizeof(type)))
  8. #define RENEW(type, old, qty) ((type*)realloc(old, qty*sizeof(type)))
  9. #define DELETE(type, addr) (type##_dt(addr), addr ? free(addr) : (void)0)
  10. #define FREE(addr) free((VOIDPTR)addr)
  11. #define char_dt(addr) ((void)0)
  12.  
  13.  
  14. #ifndef EOF
  15. #define EOF (-1)
  16. #endif
  17.  
  18.